<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
    <div class="layui-logo logo"><a style="color: #00F7DE" href="/">高考推荐系统</a></div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item"><a href="/School/search=&province_id=&">院校信息</a></li>
        <li class="layui-nav-item"><a href="/School/recommend/">院校推荐</a></li>
        <li class="layui-nav-item"><a href="/Profession/search=&level_1=&level_2=&">专业信息</a></li>
        <li class="layui-nav-item"><a href="/Test/">问卷调查</a></li>
    </ul>
        {% if request.session.is_login %}
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                <a href="javascript:;">
                <img src="/static/images/biye.jpg" class="layui-nav-img">
                    {{ request.session.username }}
                </a>
            <dl class="layui-nav-child">
            <dd><a href="/User/info/">基本资料</a></dd>
            <dd><a href="/User/logout/?next={{ request.path }}">退出</a></dd>
            </dl>
            </li>
{#            <li class="layui-nav-item"><a href="/User/logout/?next={{ request.path }}">退出</a></li>#}
            </ul>
        {% else %}
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item"><a href="/User/login">登录</a></li>
                <li class="layui-nav-item"><a href="/User/register">注册</a></li>
            </ul>
        {% endif %}


  </div>
</div>
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
});
</script>
